package com.ir;

import com.sysdep.CodeGenerator;

public class ExprStmt extends Stmt {
    Expr expr;

    public ExprStmt(Expr expr) {
        this.expr = expr;
    }

    public Expr getExpr() {
        return expr;
    }

    @Override
    public String getString() {
        return expr.toString();
    }
    public void accept(CodeGenerator cg) {
        cg.visit(this);
    }

}
